Ext.define('demo.view.presswin',{
	extend:'Ext.window.Window',
	alias : 'widget.dpress',
	
	title:'出版社信息',
	
	modal:true,
	width:350,
	height:350,
	
	initComponent:function(){
		this.items=[
			{
				xtype:'grid',
				columns:[
					{text: '出版社名称',  dataIndex: 'BookPress',  flex: 1},
			        {text: '出版社代码', dataIndex: 'BookPressCode', flex: 1}
				],
				store:'pressStore',
				dockedItems:[
					{
						xtype:'toolbar',
						dock:'top',
						items:[
							{
								text:'保存',
								id:'SavePress'
							}
						]
					}
				]
			}
		];
		
		this.callParent(arguments);
	}
	
	
})